package com.gxa.admin.recycling.service;

import com.github.pagehelper.PageInfo;
import com.gxa.core.recycling.exception.BusinessException;
import com.gxa.core.recycling.pojo.OutOrder;
import com.gxa.core.recycling.pojo.OutOrderItem;
import com.gxa.core.recycling.pojo.OutOrderVo;
import com.gxa.core.recycling.service.BaseService;

import java.util.List;
import java.util.Map;

public interface OutOrderService extends BaseService<OutOrder> {

    Map<Integer,List <Map>> findAllOutOrder(Long id, String state, String time,Integer page, Integer size);


    OutOrderVo findOutOrderDetailById(Long id);

    void addOutOrder(OutOrder outOrder,List<OutOrderItem> list) throws BusinessException;


    void deleteOutOrder(Long id);

    //审批
    void approval(OutOrder outOrder) throws BusinessException;
}
